package org.example.controller;

import java.util.List;
import org.example.pojo.SiteDto;
import org.example.service.impl.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: big-event
 * @ClassName SiteController
 * @description:
 * @author: zsn
 * @create: 2024-07-17 14:50
 * @Version 1.0
 **/
@RestController
public class SiteController {

    @Autowired
    private SiteService siteService;

    @RequestMapping("/getAllData")
    public List<SiteDto> getAllData(){
        return siteService.queryAll();
    }
}
